# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=glacier-browser
pkgver=0.1.1
pkgrel=0
pkgdesc="The Glacier browser"
url="https://github.com/nemomobile-ux/glacier-browser"
# armhf blocked by qt5-qtdeclarative
# s390x, ppc64le and riscv64 blocked by qt5-qtwebengine-dev
arch="all !armhf !s390x !ppc64le !riscv64"
license="GPL-2.0-only"
depends="
	qt5-qtbase-sqlite
	qtquickcontrols-nemo
	"
makedepends="
	cmake
	libglacierapp-dev
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	qt5-qttools-dev
	qt5-qtwebengine-dev
	"
source="https://github.com/nemomobile-ux/glacier-browser/archive/$pkgver/glacier-browser-$pkgver.tar.gz"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
d4ee59f7f21cbfb4279bfdef2aa244898d669b476f63ad9e34665a4384347125c8069768f564071ae621995aa1bd8536db79c582203dfa93b7a65aac890f20f5  glacier-browser-0.1.1.tar.gz
"
